package com.hjm.java.entity;

import android.graphics.Bitmap;

import com.alibaba.fastjson.annotation.JSONField;

import com.hjm.java.utils.MD5Util;

public class UserInfo {
    private String nickName;
    private String loginName;
    private String introduceSign;
    private Integer profilePhoto;

    @JSONField(serialize = false)
    private String passwordMd5;

    @JSONField(serialize = false)
    private Bitmap profilePhotoBitmap;

    public UserInfo() {
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getLoginName() {
        return loginName;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }

    public String getIntroduceSign() {
        return introduceSign;
    }

    public void setIntroduceSign(String introduceSign) {
        this.introduceSign = introduceSign;
    }

    public Integer getProfilePhoto() {
        return profilePhoto;
    }

    public void setProfilePhoto(Integer profilePhoto) {
        this.profilePhoto = profilePhoto;
    }

    public Bitmap getProfilePhotoBitmap() {
        return profilePhotoBitmap;
    }

    public void setProfilePhotoBitmap(Bitmap profilePhotoBitmap) {
        this.profilePhotoBitmap = profilePhotoBitmap;
    }

    public String getPasswordMd5() {
        return passwordMd5;
    }

    public void setPasswordMd5(String passwordMd5) {
        this.passwordMd5 = MD5Util.MD5Encode(passwordMd5, "UTF-8");
    }

    @Override
    public String toString() {
        return "UserInfo{" +
                "nickName='" + nickName + '\'' +
                ", loginName='" + loginName + '\'' +
                ", introduceSign='" + introduceSign + '\'' +
                ", profilePhoto=" + profilePhoto +
                ", passwordMd5='" + passwordMd5 + '\'' +
                '}';
    }
}
